package com.tomasio.projects.welcome.events
{
	import com.tomasio.projects.welcome.model.Cartao;
	
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	
	public class CartaoServiceEvent extends Event
	{
		public static var CARTAO_LOADED_EVENT:String = "cartaoLoadedEvent";
		public static var CARTOES_LOADED_EVENT:String = "cartoesLoadedEvent";
		public static var CARTAO_REMOVED_EVENT:String = "cartaoRemovedEvent";
		public static var CARTAO_CREATED_EVENT:String = "cartaoCreatedEvent";
		public static var CARTAO_UPDATED_EVENT:String = "cartaoUpdatedEvent";
		
		
		public var cartao:Cartao;
		public var cartoes:ArrayCollection;
		
		public function CartaoServiceEvent(type:String, cartao:Cartao, cartoes:ArrayCollection)
		{
			super(type, true);
			this.cartao = cartao;
			this.cartoes = cartoes;
		}
		override public function clone():Event {
			return new CartaoServiceEvent(type, cartao, cartoes);
		}
	}
}